package com.tanhua.dubbo.mappers;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tanhua.model.domain.Announcement;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author SunSun
 * @date 2021/10/31
 */
public interface AnnouncementMapper extends BaseMapper<Announcement> {
    @Select("select\n" +
            " *\n" +
            " from\n" +
            "tb_announcement")
    IPage<Announcement> findAnnouncement(@Param("page1")Page page1);
}
